package freespiritsocial.io.user.data.model.bean

data class ContactsBean(
    val contactName: String,
    val contactPhone: String,
    var id: Long = 0
) {
    override fun equals(other: Any?): Boolean {
        return if (other is ContactsBean) {
            other.contactName == contactName && other.contactPhone == contactPhone
        } else
            super.equals(other)
    }

    override fun hashCode(): Int {
        var result = contactName.hashCode()
        result = 31 * result + contactPhone.hashCode()
        return result
    }
}